import { getOperateDetails } from '@/pages/Task/services';

export const fetchOperateDetails = async (id, operateRecordId) => {
    const res = await getOperateDetails(id, operateRecordId);
    const { code, data, msg } = res;
    if (code !== 10000 || !data) {
        throw new Error(msg || '获取操作记录详情信息失败~');
    }
    return data;
};
